package com.linx.system.mapper;

import com.linx.common.mybatis.core.mapper.BaseMapperPlus;
import com.linx.system.domain.AppMenu;
import com.linx.system.domain.vo.AppMenuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 移动端应用菜单Mapper接口
 *
 * @author linx
 * @date 2024-12-24
 */
@Repository
public interface AppMenuMapper extends BaseMapperPlus<AppMenu, AppMenuVo> {


    List<AppMenuVo> selectAppMenuServiceListByUserIdAndRoleIds(@Param("userId") Long userId,
                                                          @Param("roleIds")List<Long> roleIds);
    List<AppMenuVo> selectAppMenuServiceListByRoleIds(@Param("menuTypeId") Long menuTypeId, @Param("roleIds")List<Long> roleIds);

}
